package com.service.screenReception.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class DeviceInfoDto {
    private String id;
    private String name;
    private String esn;
    private String deviceModel;
    private String deviceType;
    private String status;
    private String siteId;
    private String mac;
    private String ip;
    private String neType;
    private String version;
    private String vendor;
    private String description;
    private String resourceId;
    private String tenantId;
    private String tenantName;
    private String siteName;
    private List<String> tags;
    private String systemIp;
    private String patchVersion;
    private Boolean ztpConfirm;
    private String manageStatus;
    private List<String> manageStatusDownReason;
    private List<String> role;

    private String tagsStr;
    private String manageStatusDownReasonStr;
    private String roleStr;

    /*//相对AP的层高（取低值）
    private List<Integer> storey = new ArrayList<>();
    private Integer category;
    //所属树id
    private String treeId;
    //对端个数
    private long oppositeNum;
    //对端设备列表
    private List<String> oppositeDeviceList = new ArrayList<>();
    //设备展示横坐标
    private Integer x;
    //设备展示纵坐标
    private Integer y;*/

    public String getManageStatusDownReasonStr() {
        if(manageStatusDownReason!=null)
        {
            return manageStatusDownReason.toString();
        }
        return manageStatusDownReasonStr;
    }

    public void setManageStatusDownReasonStr(String manageStatusDownReasonStr) {
        this.manageStatusDownReasonStr = manageStatusDownReasonStr;
    }

    public String getTagsStr() {
        if(tags!=null)
        {
            return tags.toString();
        }
        return tagsStr;
    }

    public void setTagsStr(String tagsStr) {
        this.tagsStr = tagsStr;
    }

    public String getRoleStr() {
        if(role!=null)
        {
            return role.toString();
        }
        return roleStr;
    }

    public DeviceInfoDto(String id, String name, String deviceType,String deviceModel) {
        this.id = id;
        this.name = name;
        this.deviceType = deviceType;
        this.deviceModel = deviceModel;
    }

    public DeviceInfoDto() {
    }
}
